package com.coffee.service.impl;

import com.coffee.dao.OrderDetailDAO;
import com.coffee.entity.OrderDetail;
import com.coffee.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    @Autowired
    private OrderDetailDAO orderDetailDAO;
    @Override
    public void saveBatch(ArrayList<OrderDetail> orderDetailList) {
      orderDetailDAO.insert(orderDetailList);
    }
}
